package cn.huobi.basic.constant;

import java.util.Calendar;

/**
 * 公共常量
 */
public class BaseConstant {

    public class VerfityCodeCons{
        // 短信验证码 存在Redis中的key
        public static final String REGISTER_SMSCODE_PHONE = "register:smscode:%s";
        // 邮箱验证码
        public static final String REGISTER_EMAILCODE_EMAIL = "redister:emailcode:%s";
        // 登录验证码
        public static final String LOGIN_SMSCODE_PHONE = "login:smscode:%s";
        // 手机号绑验证码
        public static final String BINDER_SMSCODE_PHONE = "binder:smscode:%s";
    }

    public class WeChatLoginCons{
        // 微信登陆appid
        public static final String WeChat_LOGIN_APPID = "wxd853562a0548a7d0";
        // 微信登陆 SECRET
        public static final String WeChat_LOGIN_SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        // 微信登陆请求获取token 地址
        public static final String WeChat_LOGIN_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";
        // 微信登陆请求获取用户信息
        public static final String WeChat_LOGIN_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
    }
}
